using UnityEngine;
using System.Collections;

public class Gold : Trigger {
	
	protected new void Awake(){
		base.Awake();
		
		Reset();
	}
	
	public void Reset(){
		IsDestroyed = false;
	}
	
	public override void OnContactAdded (){
		IsDestroyed = true;
		
		base.OnContactAdded ();
	}
	
	protected void Update(){
		UtilsDebug.DrawRect(worldBounds,Color.yellow);	
	}
	
}

